﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AmieLib.Models
{
    public partial class ToDo
    {
        public static List<ToDo> FromAll()
        {
            var list = Fetch("WHERE 1=1");
            return list;
        }

        public static ToDo FromID(int todoid)
        {
            var item = FirstOrDefault("WHERE ID=@0", todoid);
            return item;    
        }
    }
}
